import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      redirect: '/QRcode'
    },
    {
      path: '/charge',
      name: 'charge',
      // component: () => import('../pages/index/occupationalHealth')
      component: resovle => require(['../pages/index/charge'],resovle),
    },
    {
      path: '/QRcode',
      name: 'QRcode',
      // component: () => import('../pages/index/occupationalHealth')
      component: resovle => require(['../pages/index/QRcode'],resovle),
    },
    {
      path: '/GuanJia',
      name: 'GuanJia',
      // component: () => import('../pages/index/occupationalHealth')
      component: resovle => require(['../pages/index/GuanJia'],resovle),
    },
    {
      path: '/detail',
      name: 'detail',
      // component: () => import('../pages/index/occupationalHealth')
      component: resovle => require(['../pages/index/detail'],resovle),
    },
    {
      path: '/code',
      name: 'code',
      // component: () => import('../pages/index/occupationalHealth')
      component: resovle => require(['../pages/index/code'],resovle),
    },
    {
      path: '/QRcode2',
      name: 'QRcode2',
      // component: () => import('../pages/index/occupationalHealth')
      component: resovle => require(['../pages/index/QRcode2'],resovle),
    },
    {
      path: '/accomplish',
      name: 'accomplish',
      // component: () => import('../pages/index/occupationalHealth')
      component: resovle => require(['../pages/index/accomplish'],resovle),
    }
  ]
})
